import request from '@/utils/request'

// 查询配件信息列表
export function listAccessory_info(query) {
  return request({
    url: '/system/accessory_info/list',
    method: 'get',
    params: query
  })
}

// 查询配件信息详细
export function getAccessory_info(accessoryId) {
  return request({
    url: '/system/accessory_info/' + accessoryId,
    method: 'get'
  })
}

// 新增配件信息
export function addAccessory_info(data) {
  return request({
    url: '/system/accessory_info',
    method: 'post',
    data: data
  })
}

// 修改配件信息
export function updateAccessory_info(data) {
  return request({
    url: '/system/accessory_info',
    method: 'put',
    data: data
  })
}

// 删除配件信息
export function delAccessory_info(accessoryId) {
  return request({
    url: '/system/accessory_info/' + accessoryId,
    method: 'delete'
  })
}


